#include <bits/stdc++.h>
using namespace std;

#include <bits/extc++.h>
using namespace __gnu_pbds;

using vi = vector<int>;

int N;
vi A;

void work(){
    cin >> N;
    A.assign(N, {});
    for(auto & i : A) cin >> i;

    if(1 == N)return (void)(cout << "Alice\n");

    sort(A.begin(), A.end());

    int a = 0, b = 0;
    for(int i=A.size()-1;i>=0;i-=2){
        a += A[i];
        if(i - 1 >= 0) b+=A[i - 1];
    }
    if(a > b) return (void)(cout << "Alice\n");
    cout << "Bob\n";
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int nofkase = 1;
    cin >> nofkase;
    while(nofkase--) work();
    return 0;
}